<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>模型列表</title>
	<script type='text/javascript' src='__ROOT__/Data/Org/Jquery/jquery-1.8.2.min.js'></script>
	<link href='__ROOT__/Data/Org/hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
	<script type='text/javascript' src='__ROOT__/Data/Org/hdjs/js/hdjs.js'></script>
	<script type='text/javascript' src='__ROOT__/Data/Org/hdjs/js/slide.js'></script>
	<script type='text/javascript' src='__ROOT__/Data/Org/hdjs/org/cal/lhgcalendar.min.js'></script>
	<script type='text/javascript'>
		ACTION='__URL__'; //当前模块(控制器)
		ROOT='__ROOT__'; //当前项目根路径
		PUBLIC= '__PUBLIC__';//当前定义的Public目录
	</script>
	
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/mod.base.css" />
</head>
<body>
	
	<div class="wrap">
		<form action="<?php echo U('Category/update_order');?>" method="post" class='hd-form'>
				<div class="menu_list">
					<ul>
						<li>
							<a href="javascript:;" class="action">
								模型列表
							</a>
						</li>
						<li>
							<a href="<?php echo U('Model/add');?>">
								添加模型
							</a>
						</li>
						<li>
							<a href="<?php echo U('Model/update_cache');?>">
								更新缓存
							</a>
						</li>
					</ul>
				</div>
				<table class="table2">
					<thead>
						<tr>
							<td class="w30">MID</td>
							<td>模型名称</td>
							<td class="w100">表名称</td>
							<td class="w180">操作</td>
						</tr>
					</thead>
					<?php if($data): if(is_array($data)): foreach($data as $key=>$v): ?><tr>
							
							<td><?php echo ($v["mid"]); ?></td>
							
							<td><?php echo ($v["remark"]); ?></td>
							<td><?php echo ($v["name"]); ?></td>
						
							<td>
							
							<a href="<?php echo U('Field/index',array('mid'=>$v['mid']));?>">
								字段管理
							</a>
							<span class="line">|</span>
							<a href="<?php echo U('Model/edit',array('mid'=>$v['mid']));?>">
								修改
							</a>
							<span class="line">|</span>
							<a href="javascript:var del='<?php echo U('Model/del',array('mid'=>$v['mid']));?>';hd_confirm('确认删除吗？',function(){location.href=del})">
								删除
							</a></td>
						</tr><?php endforeach; endif; ?>
						<?php else: ?>
						<tr>
							<td colspan="5">没有找到符合的记录</td>
						</tr><?php endif; ?>
					</table>
				<div class="h60"></div>
		</form>
	</div>


</body>
</html>